<?php
/*
* Copyright (C) 2005-2010 LoD->Project() <http://www.linkofdead.fr/>
*
* This website is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*/

// Set flag that this is a parent file
define( 'MAIN', 1 );

// Definie a current direction 
define('PATH_BASE', dirname(__FILE__) );

define( 'DS', DIRECTORY_SEPARATOR );

require_once ( PATH_BASE .DS. 'conf'.DS.'defines.php' );
require_once ( PATH_CONF .DS. 'framework.php' );
require_once ( PATH_LIBS .DS. 'Smarty.class.php');

// Load $smarty
$smarty = new Smarty;

// General config smarty

//$smarty->force_compile = true;
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 1200;

//add var
$smarty->assign("title",$sitename);

//Load TPL
$smarty->display($themedefault.DS.'index.tpl');
?>